/**
 * reName   fileName
 */
@file:JvmName("asdasdasd")

package package010


import fundation.gsonPrintln

/**
 * @author futao
 * Created on 2017/11/16 - 18:46.
 */
class KotlinAnnotation {
    companion object {
        /**
         * 标记一个方法已经过时
         */
        @Deprecated(message = "该方法已过时，请使用最新的版本", replaceWith = ReplaceWith("saySth()", "index"), level = DeprecationLevel.WARNING)
        fun sayEnglish() {
            gsonPrintln("say English.")
        }

        fun sayChinese() {
            gsonPrintln("say Chinese.")
        }
        @JvmName("jjjj")
        fun saySth(sth:String){
            gsonPrintln(" say $sth")
        }
    }
    var name:String
    constructor(name:String){
        this.name=name
    }
}


